Optimal. Leaf size=70 \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0307147, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {366, 365, 364} \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 366
Rule 365
Rule 364
Rubi steps
\begin{align*} \int x \left (-a+b x^n\right )^p \left (a+b x^n\right )^p \, dx &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (-a^2+b^2 x^{2 n}\right )^{-p}\right ) \int x \left (-a^2+b^2 x^{2 n}\right )^p \, dx\\ &=\left (\left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p}\right ) \int x \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^p \, dx\\ &=\frac{1}{2} x^2 \left (-a+b x^n\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \, _2F_1\left (\frac{1}{n},-p;1+\frac{1}{n};\frac{b^2 x^{2 n}}{a^2}\right )\\ \end{align*}
Mathematica [A] time = 0.0144613, size = 72, normalized size = 1.03 \[ \frac{1}{2} x^2 \left (b x^n-a\right )^p \left (a+b x^n\right )^p \left (1-\frac{b^2 x^{2 n}}{a^2}\right )^{-p} \text{HypergeometricPFQ}\left (\left \{\frac{1}{n},-p\right \},\left \{\frac{1}{n}+1\right \},\frac{b^2 x^{2 n}}{a^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.142, size = 0, normalized size = 0. \begin{align*} \int x \left ( -a+b{x}^{n} \right ) ^{p} \left ( a+b{x}^{n} \right ) ^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \left (- a + b x^{n}\right )^{p} \left (a + b x^{n}\right )^{p}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x^{n} + a\right )}^{p}{\left (b x^{n} - a\right )}^{p} x\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]